<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ConfirmDialogAlertBehavior.aspx.cs" Inherits="AlertBehavior_ConfirmDialogAlertBehavior"
	Title="ConfirmDialogAlertBehavior - ModWatch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContent" Runat="Server">

	<h2>ConfirmDialogAlertBehavior Control</h2>

	<p>
		The ConfirmDialogAlertBehavior control notifies the
		user that changes exists via a confirm dialog box.
		If the user clicks the cancel button, then the
		user will not be redirected away from the page.
	</p>

	<p>
		&lt;mw:ConfirmDialogAlertBehavior ID="cdaTestAlert" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made, do you want to continue?" />

		<br /><br />

		&lt;asp:CheckBox Text="Test CheckBox Control" ID="cbTest" runat="server" />
		<br />
		&lt;mw:CheckBoxModWatcherExtender TargetControlID="cbTest" runat="server" />

		<br /><br />

		&lt;asp:Button Text="Fire ModAlert" ID="btnTest" runat="server" />
		<br />
		&lt;mw:OnClickModAlertExtender runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		TargetControlID="btnTest" AlertBehaviorID="cdaTestAlert" />

		<br /><br />

	</p>

	<p>
		<mw:ConfirmDialogAlertBehavior ID="cdaTestAlert" runat="server"
			NotifyModMessage="Changes have been made, are you sure you want to continue?" />

		<asp:CheckBox Text="Test CheckBox Control" ID="cbTest" runat="server" />
		<mw:CheckBoxModWatcherExtender TargetControlID="cbTest" runat="server" />

		<br /><br />

		<asp:Button Text="Fire ModAlert" ID="btnTest" runat="server" />
		<mw:OnClickModAlertExtender runat="server"
			TargetControlID="btnTest" AlertBehaviorID="cdaTestAlert" />

		<asp:Button Text="Save Changes" OnClick="btnSave_Click" ID="btnSave" runat="server" />

		<br /><br />
		
		Page last served: <asp:Label ID="lblLastServed" runat="server"></asp:Label>
		<br />
		Change detected on server? <asp:Label ID="lblServerChange" runat="server"></asp:Label>
	</p>

</asp:Content>
